//
//  HLIMSessionContentConfig.h
//  YueYue
//
//  Created by hulu001 on 2024/1/11.
//

#ifndef HLIMSessionContentConfig_h
#define HLIMSessionContentConfig_h


@class NIMMessage;

@protocol HLIMSessionContentConfig <NSObject>
@optional
/// 计算气泡内容尺寸
/// @param cellWidth cell的宽
/// @param message 消息
- (CGSize)contentSize:(CGFloat)cellWidth message:(NIMMessage *)message;

/// 计算气泡内的复杂布局各个尺寸
- (NSDictionary *)subContentSize:(CGFloat)cellWidth message:(NIMMessage *)message;

/// content view 的名字（一般是类名）
/// @param message 消息
- (NSString *)cellContent:(NIMMessage *)message;

/// cell内容距离气泡的内间距
/// @param message 消息
- (UIEdgeInsets)contentViewInsets:(NIMMessage *)message;

- (UIEdgeInsets)cellInsets:(NIMMessage *)message;

- (BOOL)showAvatar:(NIMMessage *)message;

@end

#endif /* HLIMSessionContentConfig_h */
